package com.seashop.controller;

import com.seashop.response.ResponseBase;
import com.seashop.feign.ProductFeignClient;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author moredln
 * @desc
 * @date 2020-08-07 23:21
 */
@RestController
@Api(tags = "产品模块——聚合接口")
public class ProductController {

    @Autowired
    private ProductFeignClient productFeignClient;

    @GetMapping("/category/listCategory")
    @ApiOperation(value = "分类列表")
    public ResponseBase listCategory(String countryCode, String languageType) {
        return productFeignClient.listCategory(countryCode, languageType);
    }
}
